3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage shaders.
You can use the Q3Shader_GetType function to get the type of a shader object.
TQ3ObjectType Q3Shader_GetType (TQ3ShaderObject shader);
The Q3Shader_GetType function returns, as its function result, the type of the shader object specified by the shader parameter. The types of shader objects currently supported by QuickDraw 3D are defined by these constants:
kQ3ShaderTypeSurface
kQ3ShaderTypeIllumination
If the specified shader object is invalid or is not one of these types, Q3Shader_GetType returns the value kQ3ObjectTypeInvalid .
You can use the Q3Shader_Submit function to submit a shader in a view.
TQ3Status Q3Shader_Submit (
TQ3ShaderObject shader,
TQ3ViewObject view);
Previous | QD3D Book | Overview | Chapter Contents | Next |